/*
 * @Author: zhuxiaoyi
 * @Date: 2024-01-22 16:57:20
 * @LastEditor: zhuxiaoyi
 * @LastEditTime: 2024-08-15 18:01:44
 * @Description:
 */
import {
    Body,
    Controller,
    Del,
    File,
    Get,
    Inject,
    Param,
    Post,
    Put,
    Query,
  } from '@midwayjs/core';
  import { Context } from '@midwayjs/koa';
  import { ProductService } from '../service/product.service';
  import { GetProductsDto } from '../dto/ProductDto';
  
  @Controller('/product')
  export class APIController {
    @Inject()
    ctx: Context;
  
    @Inject()
    productService: ProductService;
  
    @Get('/', { summary: '成果列表' })
    async getList(@Query() params: GetProductsDto) {
      return await this.productService.getProductsList(params);
    }
  
  }
  
  
  